package com.example.demo.design.GoF.strategy.example;

/**
 * 环境类
 *
 * @author luowj12
 * @since 2021/5/6 13:56
 */
public class Context {

    private Strategy strategy;
    public Strategy getStrategy() {
        return strategy;
    }
    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }
    public void strategyMethod() {
        strategy.strategyMethod();
    }

}
